package com.ld.basic.service;

import com.ld.basic.query.BaseQuery;
import com.ld.basic.utils.PageList;

import java.util.List;

public interface IBaseService<T> {
    T loadById(Long id);

    List<T> loadAll();

    void insert(T t);

    void remove(Long id);

    void update(T t);

    void batchDelete(List<Long> ids);

    PageList<T> queryPage(BaseQuery query);
}
